<template>
	<!-- 过渡页面 -->
	<view>
		<transition-loading></transition-loading>
	</view>
</template>

<script>
	import transitionLoading from '@/components/base/transition-loading.vue'
	
	export default {
		components: {
			transitionLoading
		},
		data() {
			return {
				
			}
		},
		onLoad(option) {
			let url = ""
			let projectType = uni.getStorageSync("projectType")
			if(projectType == 'wind') {
				url = "/pages/business/defect/wind/detail"
			} else if(projectType == 'fire') {
				url = "/pages/business/defect/fire/detail"
			}
			option.dfId = option.dfId == undefined ? '' : option.dfId
			if(option.source) {
				uni.redirectTo({
					url: url + "?dfId=" + option.dfId + "&type=" + option.type + '&source=' + option.source + '&sourceId=' + option.sourceId + '&sourceData=' + option.sourceData
				})
			} else {
				uni.redirectTo({
					url: url + "?dfId=" + option.dfId + "&type=" + option.type
				})
			}
		}
	}
</script>

<style>
</style>